package com.lshj.impl;

import com.hj.lib.util.DevUtil;

import java.awt.*;
import java.awt.event.KeyEvent;

public class JxJsObj {
    public String  getMac() {
        return DevUtil.getMACAddress();
    }
    public void  keyWindows() {
        try {
            Robot robot = new Robot();
            robot.keyPress(KeyEvent.VK_WINDOWS);
            robot.keyRelease(KeyEvent.VK_WINDOWS);
            Thread.sleep(100);
            robot.keyPress(KeyEvent.VK_ESCAPE);
            robot.keyRelease(KeyEvent.VK_ESCAPE);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
